package com.alan.responsibility;

import com.alan.responsibility.model.Request;
import com.alan.responsibility.model.Result;
import com.alan.responsibility.util.ChainOfResponsibilityClient;

/**
 * Created by Alan on 2018/10/15.
 */
public class Main {
    public static void main(String[] args) {

        Request request = new Request.Builder().setName("张三").setDays(5)
                .setReason("事假").build();
        ChainOfResponsibilityClient client = new ChainOfResponsibilityClient();
        Result result = client.execute(request);

        System.out.println("结果：" + result.toString());
    }
}
